﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PlantsZombies.Common.Zombie
{
    /// <summary>
    /// 哥布林
    /// </summary>
    [PlantZombie(SpeciesType.GeBuLin)]
    public class GeBuLin : ZombieObject
    {
        public GeBuLin(ImageObject[] images) : base(images, SpeciesType.GeBuLin, 25, 3, 2, new System.Drawing.Size(150, 150))
        {
        }
        protected override void PlayBody(IntPtr hdc)
        {
            var image = _images[_curPlayIndex];
            GDI32.DrawImageTransparenc(hdc, image.BitmapPtr, Location.X + (CellWidth - Size.Width) / 2, Location.Y + (CellHeight - Size.Height) / 2 - (int)(18 * ZoomY), image.Width, image.Height, Size.Width, Size.Height);
            if (++_curPlayIndex >= _images.Length)
                _curPlayIndex = 0; ;
        }
    }
}
